package com.dragon.logical.service.avttendance;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.repository.entity.AttendanceArrange;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 考勤配置 服务类
 * </p>
 *
 * @author sy
 * @since 2023-07-31
 */
public interface IAttendanceArrangeService extends IService<AttendanceArrange> {

    Page<AttendanceArrange> arrangeList(Integer page, Integer limit, String search);

    Integer arrangeAdd(AttendanceArrange arrange);

    void updateArrange(AttendanceArrange arrange);

    /**
     * 根据id 查看详情
     * @param id 考勤id
     * @return
     */
    AttendanceArrange seeDetails(Integer id);

    void arrangeDelete(Integer id);

    /**
     * 根据用户id 获取考勤详情
     * @param adminId 用户id
     * @return
     */
    //AttendanceArrange seeDetailsByAdminId(Integer adminId);

    /**
     * 根据用户id 获取考勤详情
     * @param adminId 用户id
     * @return
     */
    AttendanceArrange seeDetailsByAdminId(Integer adminId,Integer arrangeId);
}
